{php $task_mode =intval(m('cache')->getString('task_mode', 'global'))}
{if $task_mode==0}
<script language='javascript'>
	$(function(){
		$.getJSON("{php echo mobileUrl('util/task')}");
	})
</script>
{/if}
<!-- <script> -->
<!-- var _hmt = _hmt || []; -->
<!-- (function() { -->
  <!-- var hm = document.createElement("script"); -->
  <!-- hm.src = "https://hm.baidu.com/hm.js?9090c47eba5babdb4e0bf5102e85ac65"; -->
  <!-- var s = document.getElementsByTagName("script")[0];  -->
  <!-- s.parentNode.insertBefore(hm, s); -->
<!-- })(); -->
<!-- </script> -->
<!-- http://www.kkl360.com -->
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?ba305688e8a5306e85048ad9fdff8fc3";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>


<script language="javascript">
	require(['init']);


</script>


{if is_h5app()}
	{php $this->shopShare()}
	<script language='javascript'>
		require(['biz/h5app'], function (modal) {
			modal.init({
				share: {php echo json_encode($_W['shopshare'])},
				backurl: "{$_GPC['backurl']}",
				statusbar: "{php echo intval($_W['shopset']['wap']['statusbar'])}",
				payinfo: {php echo json_encode($payinfo)}
			});
			{if $initWX}
			modal.initWX();
			{/if} 
		});
	</script>
	{template 'headmenu'}
{/if}

{template '_share'}

{php $merchid = !empty($goods['merchid'])?$goods['merchid']:$_GPC['merchid']}

{php $this->diyLayer(true, $diypage, $merchid?$merchid:false)}
{php $this->diyGotop(true, $diypage)}

{php $this->wapQrcode()}
<span style="display:none">{$_W['shopset']['shop']['diycode']}</span>
</body>
</html>
